#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: Farmer Li, 公众号: 很酷的程序员/RealCoolEngineer
# @Date: 2021-04-17
# @Question: https://www.zhihu.com/question/454483392

acd = [{
    'name': 'li',
    'age': 18
}, {
    'name': 'zhang',
    'age': 21
}, {
    'name': 'san',
    'age': 24
}, {
    'name': 'si',
    'age': 35
}]


def sum_age(acd):
    age_sum = 0
    for d in acd:
        age_sum += d['age']
    return age_sum


print(sum_age(acd))
